package com.nuumoblie.bluetoothtools;

import android.app.Application;
import android.os.Handler;

public class AppApplication extends Application {

    public static AppApplication instance;
    private static final Handler sHandler = new Handler();

    public static AppApplication getInstance() {
        return instance;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        instance = this;
    }

    public static void runOnMainUI(Runnable run){
        sHandler.post(run);
    }
}
